import request from './request';

// 获取用户列表
export const getUserList = (data) => {
    return request({
        url: '/user/list', 
        method: 'post',
        data: data
      });
};
// 用户注册
export const userRegister = (data) => {
    return request({
        url: '/user/register', 
        method: 'post',
        data: data
      });
};
// 用户登录
export const userLogin = (data) => {
    return request({
        url: '/user/login', 
        method: 'post',
        data: data
      });
};
// 用户登出
export const userLogout = (data) => {
    return request({
        url: '/user/logout', 
        method: 'get',
        data: data
      });
};
//获取用户信息
export const getUserInfo = () => {
    return request({
        url: '/user/info', 
        method: 'get'
      });
};